package com.luckku.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luckku.boot.model.entity.Cart;
import com.luckku.boot.model.vo.CartVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author luckku
 * @date 2021/12/15
 */

@Repository
public interface CartMapper extends BaseMapper<Cart> {

    /**
     * 获取用户购物车
     * @param userId
     * @param storeId
     * @return List<CartVO>
     */
    List<CartVo> getCartById(String userId, String storeId);

}
